package com.zbkj.service.service;

import com.zbkj.dal.base.enums.RecyclePositionEnums;
import com.zbkj.dal.entity.ba.BizImg;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 业务图片(共享，回收等） 服务类
 * </p>
 *
 * @author jhui
 * @since 2023-10-03
 */
public interface BizImgService extends IService<BizImg> {
    /**
     * 删除
     * @param type
     * @param bizId
     * @return
     */
    Boolean deleteByBizId(Integer type, Integer bizId);

    /**
     * 按biz获取图片
     * @param type
     * @param bizId
     * @return
     */
    List<BizImg> listByBizId(Integer type, Integer bizId);

    BizImg getOneByBizId(Integer type, Integer bizId, RecyclePositionEnums position);

    /**
     * 根据bizIds获取
     * @param type
     * @param bizIds
     * @return
     */
    List<BizImg> listByBizIds(Integer type, List<Integer> bizIds);

    BizImg listByBizIdsAndPosition(Integer type, Integer bizIds, RecyclePositionEnums position);

    List<BizImg> listByBizIdsAndPosition(List<Integer> types, List<Integer> bizIds, RecyclePositionEnums position);
}
